﻿using System.Collections.Generic;
using System.Domain.Entity;
using Domain.Infrastructure;

namespace System.Domain.IRepository
{
    /// <summary>
    /// 用户仓库接口
    /// </summary>
    public interface ISysUserRepository : IRepositoryBase<SysUserEntity>
    {
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="keyValue"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        bool RevisePassword(string keyValue, string password);
        /// <summary>
        /// 登陆
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        SysUserEntity Login(string username, string password);
        List<SysUserEntity> GetList(Pagination pagination, string companyId, string departmentId, string positionId, string userId);
    }
}
